﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/AdminMaster.master" AutoEventWireup="true"
    CodeFile="Projects.aspx.cs" Inherits="Projects" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphAdmin" runat="Server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%">
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <h2>
                    部门业务分类管理</h2>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <table cellpadding="2" cellspacing="0" style="width: 100%">
                    <tr>
                        <td align="right">
                            &nbsp;
                        </td>
                        <td align="left">
                            &nbsp;&nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            选择部门:
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlDept" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="ddlDept_SelectedIndexChanged">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            分类标题:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtProjectTitle" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            描述:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtDescription" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            开始时间:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtStartDate" runat="server" CssClass="datepicker"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="right">
                            负责人:
                        </td>
                        <td align="left">
                            <asp:DropDownList ID="ddlUsers" runat="server">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td align="left">
                            &nbsp;&nbsp;
                            <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td align="left">
                            <asp:Button ID="btnSave" runat="server" Text="保存" OnClick="btnSave_Click" />
                            &nbsp;<asp:Button ID="btnClear" runat="server" Text="清除" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td align="left">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <asp:GridView ID="gvProjects" runat="server" CellPadding="4" ForeColor="#333333"
                                GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False">
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                                <Columns>
                                    <asp:BoundField DataField="Project_Title" HeaderText="分类名称" />
                                    <asp:BoundField DataField="Project_Desc" HeaderText="描述" />
                                    <asp:BoundField DataField="DepartmentName" HeaderText="部门" />
                                    <asp:BoundField DataField="Creation_Date" HeaderText="创建时间" />
                                    <asp:BoundField DataField="AssignedName" HeaderText="负责人" />
                                    <%--<asp:BoundField DataField="Office_Code" HeaderText="管理员" />--%>
                                    <asp:BoundField DataField="Updation_Date" HeaderText="更新时间" />
                                </Columns>
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <EditRowStyle BackColor="#999999" />
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            &nbsp;
                        </td>
                        <td align="left">
                            &nbsp;
                        </td>
                    </tr>
                </table>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
    </table>
</asp:Content>
